<script>
	import {mapMutations} from 'vuex';
	export default {
		methods: {
			...mapMutations(['login'])
		},
		onLaunch: function(option) {
			let userInfo = uni.getStorageSync('userInfo') || '';
			// if(userInfo.id){
			// 	uni.getStorage({
			// 		key:'userInfo',
			// 		success:(res) => {
			// 			this.login(res.data)
			// 			// uni.switchTab({
			// 			// 	url: '../tabBar/index/index'
			// 			// })
			// 		}
			// 	})
			// }
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	@import "colorui/uni.css";
	
	view,
	scroll-view,
	swiper,
	swiper-item,
	cover-view,
	cover-image,
	icon,
	text,
	rich-text,
	progress,
	button,
	checkbox,
	form,
	input,
	label,
	radio,
	slider,
	switch,
	textarea,
	navigator,
	audio,
	camera,
	image,
	video {
		box-sizing: border-box;
	}
	
	/* 重新定义背景色 */
	page{
		background-color: #eaf1fe;
	}
	
	.placeholderclass{
		color: #666666;
	}
</style>
